//
//  TwERPAttachedFile.h
//  TwERP
//
//  Created by Xiangyang Li on 12-7-7.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TwERPEntity.h"

@interface TwERPAttachedFile : TwERPEntity
@property (nonatomic,strong) NSString * fileDescription;
@property (nonatomic,strong) NSURL * url;
@property (nonatomic,strong) NSString * type;
@property (nonatomic,strong) NSString * fileDate;
@property bool isPlaying;
@property BOOL downloading;
@property BOOL recording;

@property (nonatomic,strong) NSString * uploadResult;

+(NSString *)localDirectory;
+(void)clearOutdateFile;
+(void)clearAttachedFile;

-(NSString *)uploadToServer;
-(NSString *)downloadFromServer;

+ (NSData *)getFileByUrl:(NSURL *) remoteUrl;

@end
